<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>

<div id="content">
  <? /*
  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
      <h1><?php echo $heading_title; ?></h1>
    </div>
  </div>
  */ ?>
  		<table style="padding-left:5px;">
        <tr>
        <td>
      	<h1 style="font:Verdana; font-size:18px; font:bold;"><?php echo $heading_title; ?></h1>
        </td>
        <td style="color:#a4a4a4;">
        <?php echo $pagination; ?>
        </td>
        </tr>
        </table>
  
  <div class="middle">
  	<?php /*
    <div class="sort">
      <div class="div1">
        <select name="sort" onchange="location = this.value">
        */ ?>
        
          <?php //foreach ($sorts as $sorts) { ?>
          <?php //if (($sort . '-' . $order) == $sorts['value']) { ?>
          <?php /*
          <option value="<?php //echo $sorts['href']; ?>" selected="selected"><?php //echo $sorts['text']; </option> ?>
          */ ?>
          
          <?php /* } else { 
          <option value="<?php //echo $sorts['href']; "><?php //echo $sorts['text']; </option> */?>
          <?php //} ?>
          <?php //} ?>
          
          <?php /*
        </select>
      </div>
      <div class="div2"><?php //echo $text_sort; ?></div>
    </div>
    */ ?>
    
    <table class="list">
      <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ?>
      <tr>
        <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
        <td style="width: 25%;" id="home-product"><?php if (isset($products[$j])) { ?>
          <div align="center" id="home-product-item">
          <a href="<?php echo $products[$j]['href']; ?>">
          <img src="<?php echo $products[$j]['thumb']; ?>" title="<?php echo $products[$j]['name']; ?>" alt="<?php echo $products[$j]['name']; ?>" /></a>
          <br />
          
          <a href="<?php echo $products[$j]['href']; ?>"><?php echo $products[$j]['name']; ?></a><br />
          <span style="color: #000000; font-size: 11px;"><?php echo $products[$j]['name']." - ".$products[$j]['model']; ?></span><br />
          
          <? //Product Price ?>
          <?php if ($display_price) { ?>
          <?php if (!$products[$j]['special']) { ?>
          <span style="color: #000000; font-weight: bold;"><?php echo $products[$j]['price']; ?></span>
          <div align="center"><img src="catalog/view/theme/default/image/category_product_footer.png" height="25" width="235"/></div>
          <br />
          
          <?php } else { ?>
          <span class="promotion_linethrough" style="color: #000000; font-weight: bold;"><?php echo $products[$j]['price']; ?></span> <span style="color: #019a34;font-weight:bold;"><?php echo $products[$j]['special']; ?></span>
           <div align="center"><img src="catalog/view/theme/default/image/category_product_footer.png" height="25" width="235"/></div>
          <?php } ?>
          <?php } ?>
          <? //End of Product Price ?>
          
          
          <?php //Rating ?>
          
          <?php /*
          <?php if ($products[$j]['rating']) { ?>
          <img src="catalog/view/theme/default/image/stars_<?php echo $products[$j]['rating'] . '.png'; ?>" alt="<?php echo $products[$j]['stars']; ?>" />
          <?php } ?>
          */ ?>
          
          <?php } ?>
          </div>
          </td>
        <?php } ?>
      </tr>
      <?php } ?>
    </table>
    <div class="pagination"><?php echo $pagination; ?></div>
  </div>
  <div class="bottom">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center"></div>
  </div>
</div>
<?php echo $footer; ?> 